<script>
import { ThemeManager } from '@/theme/themes.js'

export default {
	globalData: {
		themeColors: null
	},
	onLaunch: function() {
		// 初始化主题管理器并应用默认主题
		const themeManager = new ThemeManager()
		this.globalData.themeColors = themeManager.getCurrentThemeColors()
	},
	onShow: function() {
	},
	onHide: function() {
	}
}
</script>

<style>
	/*每个页面公共css */
	page {
		background: #f5f5f5;
	}

	/* 修复一些常见的样式问题 */
	button {
		margin: 0;
		padding: 0;
		border: none;
		outline: none;
		background: none;
	}

	button::after {
		border: none;
	}

	/* 统一字体 */
	text {
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
			Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	}
</style>
